package edu.sctu.jarime.may.day20150512;

/**
 * Created by user19 on 2015/5/12.
 */
public class TextThree extends TextOne {
    public TextThree(StudentInformation[] studentInformations) {
        super(studentInformations);
    }




    @Override
    public void output() {
        int m = 0;
        for (int i = 0; i < studentInformation.length; i++) {
            if (studentInformation[i].getscore() >60 && studentInformation[i].getsex().equals("男")) {

                m++;


                System.out.println(studentInformation[i].getname() + "\t" +
                        studentInformation[i].getaddress() + "\t" +
                        studentInformation[i].getscore() + "\t" +
                        studentInformation[i].getsex() + "\t" +
                        studentInformation[i].getage());


            }

        }
        System.out.println("分数大于60并且是男生的有"+m+"个");
   }
}
